www.gusucode.com > VC Rijndael算法加密解密示例源码程序-源码程序 > VC Rijndael算法加密解密示例源码程序-源码程序/code/Rijnd/RijndDoc.cpp
//Download by http://www.NewXing.com // RijndDoc.cpp : implementation of the CRijndDoc class // #include "stdafx.h" #include "Rijnd.h" #include "RijndDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CRijndDoc IMPLEMENT_DYNCREATE(CRijndDoc, CDocument) BEGIN_MESSAGE_MAP(CRijndDoc, CDocument) //{{AFX_MSG_MAP(CRijndDoc) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CRijndDoc construction/destruction CRijndDoc::CRijndDoc() { // TODO: add one-time construction code here } CRijndDoc::~CRijndDoc() { } BOOL CRijndDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CRijndDoc serialization void CRijndDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CRijndDoc diagnostics #ifdef _DEBUG void CRijndDoc::AssertValid() const { CDocument::AssertValid(); } void CRijndDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CRijndDoc commands